﻿
public class Exercise2 {
    public enum Course{
    	U1,U2,U3
    }
    public void doWhat(Course unit){
    	switch(unit){
    	case U1:
    		System.out.println("第一单元打基础");
    		break;
    	case U2:
    		System.out.println("第二单元可以胜任Java程序开发");
    		break;
    	case U3:
    		System.out.println("第三单元可以胜任企业级Java开发");
    		break;
    	}
    }
	public static void main(String[] args) {
		Exercise2 e=new Exercise2();
        e.doWhat(Course.U1);
        e.doWhat(Course.U2);
        Course sat=Course.U3;
        e.doWhat(sat);
	}

}
